import type { Graph } from "@antv/x6";

export interface DesignerStoreState {
  graph: Graph | null;
}

export const designerState: DesignerStoreState = {
  graph: null,
};

export default {
  state: designerState,
  mutations: {
    setGraph: (state: DesignerStoreState, payload: Graph) => {
      state.graph = payload;
    },
  },
};
